﻿
using Zy.Shared.Rpc.GrpcBase;
using Zy.Shared.Constraint;

namespace Zy.Shared.Rpc.GrpcClientServices.User
{
    /// <summary>
    /// 用户服务
    /// </summary>
    /// <param name="config"></param>
    public class HelloGrpcClientService(Hello.HelloClient client,ServiceInfo serviceInfo): IGrpcBaseClientService
    {

        /// <summary>
        /// 查询用户信息
        /// </summary>
        /// <param name="userId"></param>
        /// <returns></returns>
        public async Task<string> SayHello()
        {
            var reply = await client.PublicSayHelloAsync(new HelloRequest()
            {
                  Name = "zy",
            });
            return(reply.Message);
        }
    }
}
